package org.ouwa.lms.client.manager.service;

import org.ouwa.lms.client.service.GoogleLoginService;
import org.ouwa.lms.client.service.GoogleLoginServiceAsync;
import org.ouwa.lms.client.service.RemoteAccountService;
import org.ouwa.lms.client.service.RemoteAccountServiceAsync;

import com.google.gwt.core.client.GWT;

public class DefaultRemoteServiceManager implements RemoteServiceManager {
	private final RemoteAccountServiceAsync accService;
	private final GoogleLoginServiceAsync googleService;
	
	public DefaultRemoteServiceManager() {
		accService = GWT.create(RemoteAccountService.class);
		googleService = GWT.create(GoogleLoginService.class);
	}
	
	@Override
	public RemoteAccountServiceAsync getRemoteAccountService() {
		return accService;
	}
		
	@Override
	public GoogleLoginServiceAsync getGoogleLoginService() {
		return googleService;
	}
}
